package properties_package;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class properties_demo3 {
    public static void main(String[] args) throws IOException {
        //1、创建集合
        Properties prop = new Properties();

        //2、读取本地Properties文件里面的数据
        FileInputStream fis = new FileInputStream("/Users/zhaoxiaoyong/Documents" +
                "/Java/jigsaw_puzzle_project/properties_module/src/properties_package/a.txt");
        prop.load(fis);
        fis.close();

        //3、打印集合
        System.out.println(prop);
    }
}
